enum ConfirmOrderStatus {
    INIT = "I",
    PENDING = "P",
    SUCCESS = "S",
    FAILURE = "F",
    EMPTY = "E",
    CANCEL = "C"
}

interface OrderStatus {
    code: ConfirmOrderStatus;
    desc: string;
}

export const CONFIRM_ORDER_STATUS: Record<ConfirmOrderStatus, OrderStatus> = {
    I: { code: ConfirmOrderStatus.INIT, desc: "初始" },
    P: { code: ConfirmOrderStatus.PENDING, desc: "处理中" },
    S: { code: ConfirmOrderStatus.SUCCESS, desc: "成功" },
    F: { code: ConfirmOrderStatus.FAILURE, desc: "失败" },
    E: { code: ConfirmOrderStatus.EMPTY, desc: "无票" },
    C: { code: ConfirmOrderStatus.CANCEL, desc: "取消" }
};
